package com.hxf.dto;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.PolymorphismType;

/**
 * 餐厅菜单
 * 
 * @author tengyicheng
 * 
 */
@Entity
@Table(name = "rk_meal_menu")
@org.hibernate.annotations.Entity(selectBeforeUpdate = true, dynamicInsert = true, dynamicUpdate = true, polymorphism = PolymorphismType.EXPLICIT)
public class MealMenuDto extends BaseDto {
	private Integer id;
	private String images;
	private String menuName;
	private Integer orderBy;
	private Double price;
	private String introduce;
	private boolean isSell;
	private boolean isRecommend;
	private Double special;
	private Integer mealMenuId;
	private Integer favorableId;
	private Integer taste;
	private Integer menuTypeId;
	private Integer restaurantId;
	private Integer status;
	private Integer feedback;
	private Integer peopleNum;//消费人次
	
	/**
	 * 审核中
	 */
	public static final int MEAL_BOX_STATUA_0 = 0;
	
	/**
	 * 审核通过
	 */
	public static final int MEAL_BOX_STATUA_1 = 1;
	
	 /**
	  * 审核不通过
	  */
	public static final int MEAL_BOX_STATUA_2 = 2;
	
	 /**
	  * 作废
	  */
	public static final int MEAL_BOX_STATUA_3 = 3;

	public MealMenuDto() {
	}

	public MealMenuDto(String images, String menuName, Integer orderBy,
			Double price, String introduce, boolean isSell,
			boolean isRecommend, Double special, Integer mealMenuId,
			Integer favorableId, Integer taste, Integer menuTypeId,
			Integer restaurantId, Integer status) {
		this.images = images;
		this.menuName = menuName;
		this.orderBy = orderBy;
		this.price = price;
		this.introduce = introduce;
		this.isSell = isSell;
		this.isRecommend = isRecommend;
		this.special = special;
		this.mealMenuId = mealMenuId;
		this.favorableId = favorableId;
		this.taste = taste;
		this.menuTypeId = menuTypeId;
		this.restaurantId = restaurantId;
		this.status = status;
	}

	/**
	 * 不辣
	 */
	public final static int TASTE_0 = 0;
	/**
	 * 香辣
	 */
	public final static int TASTE_1 = 1;
	/**
	 * 香辣(可选)
	 */
	public final static int TASTE_2 = 2;
	/**
	 * 微辣
	 */
	public final static int TASTE_3 = 3;

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "images")
	public String getImages() {
		return images;
	}

	public void setImages(String images) {
		this.images = images;
	}

	@Column(name = "menu_name")
	public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	@Column(name = "order_by")
	public Integer getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(Integer orderBy) {
		this.orderBy = orderBy;
	}

	@Column(name = "price")
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	@Column(name = "introduce")
	public String getIntroduce() {
		return introduce;
	}

	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}

	@Column(name = "is_sell")
	public boolean getIsSell() {
		return isSell;
	}

	public void setIsSell(boolean isSell) {
		this.isSell = isSell;
	}

	@Column(name = "is_recommend")
	public boolean getRecommend() {
		return isRecommend;
	}

	public void setRecommend(boolean isRecommend) {
		this.isRecommend = isRecommend;
	}

	@Column(name = "taste")
	public Integer getTaste() {
		return taste;
	}

	public void setTaste(Integer taste) {
		this.taste = taste;
	}

	@Column(name = "menu_type_id")
	public Integer getMenuTypeId() {
		return menuTypeId;
	}

	public void setMenuTypeId(Integer menuTypeId) {
		this.menuTypeId = menuTypeId;
	}

	@Column(name = "special")
	public Double getSpecial() {
		return special;
	}

	public void setSpecial(Double special) {
		this.special = special;
	}

	@Column(name = "meal_menu_id")
	public Integer getMealMenuId() {
		return mealMenuId;
	}

	public void setMealMenuId(Integer mealMenuId) {
		this.mealMenuId = mealMenuId;
	}

	@Column(name = "favorable_id")
	public Integer getFavorableId() {
		return favorableId;
	}

	public void setFavorableId(Integer favorableId) {
		this.favorableId = favorableId;
	}

	@Column(name = "restaurant_id")
	public Integer getRestaurantId() {
		return restaurantId;
	}

	public void setRestaurantId(Integer restaurantId) {
		this.restaurantId = restaurantId;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name="feedback")
	public Integer getFeedback() {
		return feedback;
	}

	public void setFeedback(Integer feedback) {
		this.feedback = feedback;
	}
	
	@Column(name="peopleNum")
	public Integer getPeopleNum() {
		return peopleNum;
	}

	public void setPeopleNum(Integer peopleNum) {
		this.peopleNum = peopleNum;
	}
	
	@Override
	public String toString() {
		return "MealMenuDto [id=" + id + ", images=" + images + ", menuName="
				+ menuName + ", orderBy=" + orderBy + ", price=" + price
				+ ", introduce=" + introduce + ", isSell=" + isSell
				+ ", isRecommend=" + isRecommend + ", special=" + special
				+ ", mealMenuId=" + mealMenuId + ", favorableId=" + favorableId
				+ ", taste=" + taste + ", menuTypeId=" + menuTypeId
				+ ", restaurantId=" + restaurantId + ", status=" + status + "]";
	}
	
}
